package cn.com.tianpeidong.restaurantadmin.project.admin.user.vo;

import lombok.Data;

import javax.persistence.Entity;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author tianpeidong
 * @version 创建时间: 19-4-7 下午5:35
 */
@Data
public class UserVO {

    private Long id;

    @NotBlank(message = "用户名不能为空")
    @Size(max = 10, message = "用户名长度不能超过10")
    private String userName;
    private String password;
    private String salt;
    private String phoneNum;
    private String avatar;
    private String remark;
    private Integer status;

    @NotNull(message = "角色不能为空")
    private Long roleId;
    private String roleName;
}
